Quarto: Reports and presentations
Megumi Oshima & Nicholas Ducharme-Barth
January 2025
“An open source technical publishing system for creating beautiful articles, websites, blogs, books, slides, and more.”
— In their own words…
But really it is fancy LaTeX or expanded R Markdown that can do so much more!
basic.qmd
---
title: "Basic document"
format: html
---
## Quarto
Make different documents by changing the format!
## Code
Incorporate `code` into your work ...
```{r}
#| echo: true
x = 1 + 1
```
... and report the computations later $x =$ `r x`.
## Make plots
Even insert figures:
```{r}
#| label: fig-scatterplot
#| fig-cap: "City and highway mileage for 38 popular models of cars."
#| echo: true
library(ggplot2)
ggplot(mpg, aes(x = hwy, y = cty, color = cyl)) +
geom_point(alpha = 0.5, size = 2) +
scale_color_viridis_c() +
theme_minimal()
```basic.qmd
---
title: "Basic document"
format: pdf
---
## Quarto
Make different documents by changing the format!
## Code
Incorporate `code` into your work ...
```{r}
#| echo: true
x = 1 + 1
```
... and report the computations later $x =$ `r x`.
## Make plots
Even insert figures:
```{r}
#| label: fig-scatterplot
#| fig-cap: "City and highway mileage for 38 popular models of cars."
#| echo: true
library(ggplot2)
ggplot(mpg, aes(x = hwy, y = cty, color = cyl)) +
geom_point(alpha = 0.5, size = 2) +
scale_color_viridis_c() +
theme_minimal()
```basic.qmd
---
title: "Basic document"
format: revealjs
---
## Quarto
Make different documents by changing the format!
## Code
Incorporate `code` into your work ...
```{r}
#| echo: true
x = 1 + 1
```
... and report the computations later $x =$ `r x`.
## Make plots
Even insert figures:
```{r}
#| label: fig-scatterplot
#| fig-cap: "City and highway mileage for 38 popular models of cars."
#| echo: true
library(ggplot2)
ggplot(mpg, aes(x = hwy, y = cty, color = cyl)) +
geom_point(alpha = 0.5, size = 2) +
scale_color_viridis_c() +
theme_minimal()
```ISC Open Science Worflows Workshop 2025